package com.cy.xrd.sms.client.fallback;

import com.cy.xrd.sms.client.CoreUserInfoClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @title: CoreUserInfoClientFallback
 * @Author Luo
 * @Date: 2021/7/19 下午 07:07
 * @Version 1.0
 */
@Service
@Slf4j
public class CoreUserInfoClientFallback implements CoreUserInfoClient {
    @Override
    public boolean checkMobile(String mobile) {
        log.error("远程调用失败,服务熔断");
        return false;   //手机号不重复
    }
}